#include <stdio.h>
void reverse_arr(double [], int);

int main(void)
{
	int i;
	double arr[]={1.2, 5.1, 7.4, 4.1, 13.6 ,21.9, 52.2, 18.5};
	int size = sizeof arr/sizeof(arr[0]);
	for(i =0; i< size; i++)
		printf("%lf\n", arr[i]);
	reverse_arr(arr, size);
	for(i =0 ; i <size; i++)
		printf("%lf\n",arr[i]);	
	return 0;
}
void reverse_arr(double arr[], int size)
{
	int i;
	double temp[size];

	for(i =0; i <size; i++){
		temp[i] = arr[size-i-1];
	} 

	for(i= 0; i< size; i++){
		arr[i] = temp[i];
	}
	return;
}

